        <div id="mask"></div>
		<div id="login-box">
			<div class="full">
				<div class="two-thirds">
					<div class="reg-div">
						
						<h2>成为会员</h2>
						<p>
							<input type="text" placeholder='账户' id="reg-name">	
						</p>
						<p>
							<input type="text" placeholder='密码' id="reg-pass">
						</p>
						<p>
							<input type="text" placeholder='邮箱' id="reg-email">
						</p>
						<p>
							<input type="text" placeholder='验证码' id="reg-vcode">	
						</p>
						<p>
							<button class="danger" id="yes-reg">立即注册</button>
						</p>
					</div>
					<div class="login-div">
						<h2>用户登录</h2>
						<p>
							<input type="text" placeholder="账户" id="login-name">
						</p>
						<p>
							<input type="password" placeholder="密码" id="login-pass">
						</p>
						<p>
							<button class="success" id="yes-login">马上登陆</button>
						</p>
					</div>
					<span id='login-box-close'>×</span>

				</div>
				<div class="third login-side">
					<div class="go-login">
						<p align="center">
							已经拥有账户?<br>
							马上去登陆吧!
						</p>
						<p>
						<button class="info" id="to-login">转到登陆=></button>
						</p>
					</div>
					<div class="go-reg">
						<p align="center">
							还没有XX账户?<br>
							三秒钟注册,立即拥有!
						</p>
						<p>
						<button class="warning" id="to-reg">转到注册=></button>
						</p>
					</div>
				</div>
			</div>
		</div>
		<script>

		$(function(){
			$('#to-reg').click(function(){
				$('.reg-div').show().siblings('div').hide();
				$('.go-reg').hide().siblings().show();
			});
			$('#to-login').click(function(){
				$('.login-div').show().siblings('div').hide();
				$('.go-login').hide().siblings().show();
			});
			$('#login-box-close').click(function(){
				$('#login-box,#mask').hide();
			});
			$('#yes-reg').click(function(){
				$.post('/login/newuser',{name:$('#reg-name').val(),pass:$('#reg-pass').val(),email:$('#reg-email').val(),vcode:$('#reg-vcode').val()},function(data){
					if(data.code==0)
					{
						console.log(data);
						$.each(data.msg,function(key,value){
							console.log(key);
							console.log(value);
							$.cookie(key,value,{ expires: 30 });
						});
						location.reload();
						
					}	
					else
					{
						$.tipMessage(data.msg,2);
					}
				},'json');
			});
			$('#yes-login').click(function(){
				$.post('/login/userlogin',{name:$('#login-name').val(),pass:$('#login-pass').val()},function(data){
					if(data.code==0)
					{
						console.log(data);
						$.each(data.msg,function(key,value){
							console.log(key);
							console.log(value);
							$.cookie(key,value,{ expires: 30 });
						});
						location.reload();
					}
					else
					{
						$.tipMessage(data.msg,2);
					}
				},'json');
			});
		});
		</script>